package cn.itcast.service.impl;

import cn.itcast.dao.AccountDao;
import cn.itcast.domain.Account;
import cn.itcast.service.AccountService;
import org.springframework.beans.factory.annotation.Autowired;

import java.util.List;

public class AccountServiceImpl implements AccountService {
    @Autowired
    private AccountDao accountDao;
    //查询所有
    public List<Account> findAll(){
        System.out.println("业务层，查询所有");
        return accountDao.findAll();
    }
    //保存信息
    public void savaAccount(Account account){
        System.out.println("业务层，保存账户");
    }
}
